package org.zfes.snowier.cloud.zbss.cms.words.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsWordsSensitive extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsWordsSensitive() {}
	public CmsWordsSensitive(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="敏感词不能为空")
	@javax.validation.constraints.NotBlank(message="敏感词不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=60,message="敏感词长度不能大于60")
	  private java.lang.String words;
 
	@javax.validation.constraints.NotNull(message="替换词不能为空")
	@javax.validation.constraints.NotBlank(message="替换词不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="替换词长度不能大于255")
	  private java.lang.String replacement;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="更新时间不能为空")
	  private java.util.Date updateTime;
 
	
	//<-------------------------------------------->
	public CmsWordsSensitive setWords(java.lang.String words){
		this.words=words==null?null:words.trim();
	 return this;
	}
	public java.lang.String getWords(){
		return this.words;
	}
	public CmsWordsSensitive setReplacement(java.lang.String replacement){
		this.replacement=replacement==null?null:replacement.trim();
	 return this;
	}
	public java.lang.String getReplacement(){
		return this.replacement;
	}
	public CmsWordsSensitive setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsWordsSensitive setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsWordsSensitive setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}

}
